<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%
	String id = request.getParameter("id");//资源ID
%>
<html>
<head>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<!-- <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page"> -->
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style>
	*{
		margin:0;
		padding:0;
	}
	html,body{
		overflow:hidden;
		height:100%;
	}
</style>
</head>
<script type="text/javascript">
 	/* swf在jsp页面加载完成后回调该方法。只调用一次 */
	flexInitialized = function (resId){
 		//alert(redId);
		renderNetwork(<%=id%>);
	};
	
	function renderNetwork(resId) {
		getMyApp("resRelationMaintainSwf","rrdSwf").goRender(resId,1.5);
	}
  	function getMyApp(objName,embedName) {
  		//IE
        if (navigator.appName.indexOf ("Microsoft") !=-1 ) {
            return window[objName];
        } else if(navigator.appName.indexOf ("Netscape") !=-1){//chrome、火狐
        	return document[embedName];
        }
    }
 
  </script>
<body>
	<!-- IE9下，object标签的id与embed标签的name不可相同，否则不能掉用flex的方法。-->
	<object id='resRelationMaintainSwf'
		classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'
		codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0'
		
		height='100%' width='100%'>
		<param name='src'
			value='${pageContext.request.contextPath}/resources/flash/ResRelationManageMain.swf' />
		<param name='flashVars' value="" />
		<embed name='rrdSwf'
			src='${pageContext.request.contextPath}/resources/flash/ResRelationManageMain.swf'
			pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' height='100%'
			width='100%' flashVars='' />
	</object>
</body>
</html>
